package net.zdsoft.wpchat.support.entity;


/**
 * 权限模块实体类
 *
 * @author xuan
 */
public class AuthModule {
    public static final String CHIOCE_FLAG = "~";
    public static final int TYPE_DEFAULT = 1;
    public static final int TYPE_NO_CARRY_PARAMETERS = 2;// 不传递参数到其他模块
    public static final int TYPE_NO_LINK = 3;// 模块无连接

    private String id;
    private AuthCatalog catalog;
    private String name;
    private boolean isVisible;
    private String[] parameters;
    private String[] conditions;
    private int displayOrder;
    private String[] preModules;
    private int state;
    private int type;

    public AuthCatalog getCatalog() {
        return catalog;
    }

    public void setCatalog(AuthCatalog catalog) {
        this.catalog = catalog;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean isVisible() {
        return isVisible;
    }

    public void setVisible(boolean isVisible) {
        this.isVisible = isVisible;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String[] getConditions() {
        return conditions;
    }

    public void setConditions(String[] conditions) {
        this.conditions = conditions;
    }

    public String[] getParameters() {
        return parameters;
    }

    public void setParameters(String[] parameters) {
        this.parameters = parameters;
    }

    public String[] getPreModules() {
        return preModules;
    }

    public void setPreModules(String[] preModules) {
        this.preModules = preModules;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isNoCarryParametersType() {
        return type == TYPE_NO_CARRY_PARAMETERS;
    }

    public boolean isNoLinkType() {
        return type == TYPE_NO_LINK;
    }

    public int getDisplayOrder() {
        return displayOrder;
    }

    public void setDisplayOrder(int displayOrder) {
        this.displayOrder = displayOrder;
    }

}
